package com.vstudy.zx.service.impl;

import com.vstudy.zx.dao.LinkNavDao;
import com.vstudy.zx.entity.Article;
import com.vstudy.zx.service.LinkNavService;
import com.vstudy.zx.utils.models.LinkNav;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinkNavServiceImpl implements LinkNavService {
    @Autowired
    private LinkNavDao linkNavDao;

    // 根据文章的访问量和点击量综合评分【暂时】
    @Override
    public List<LinkNav> linkNavs() {
        return null;
    }

    @Override
    public List<Article> topArticles() {
        return linkNavDao.topArticles();
    }
}
